import request from '@/utils/request'
export const getDepartments = () => request.get('/company/department')
export const addDepartment = (data) => request.post('/company/department', data)
export const getDepartmentInfo = (id) => request.get(`/company/department/${id}`)
export const updateDepartmentInfo = (data) => request.put(`/company/department/${data.id}`, data)
export const delDepartment = (id) => request.delete(`/company/department/${id}`)
